% This is the function to calculate topological complexity
function C3=topological_Complexity(A)
singular_value=svd(A);  % Get the eigenvalue of adjacency matrix
eig_value=eig(A);
%[r,~]=size(eig_value);
[gamma,~]=size(A);
sum=0;
for i=1:gamma
        sum=sum+(abs(singular_value(i,1)));
end
%gamma;
sum=sum/gamma;
C3=sum;
end

